﻿import request from '/@/utils/request';
enum Api {
  AddBusOrder = '/api/busOrder/add',
  DeleteBusOrder = '/api/busOrder/delete',
  UpdateBusOrder = '/api/busOrder/update',
  PageBusOrder = '/api/busOrder/page',
  GetBusStroeDropdown = '/api/busOrder/BusStroeDropdown',
}

// 增加订单列表
export const addBusOrder = (params?: any) =>
	request({
		url: Api.AddBusOrder,
		method: 'post',
		data: params,
	});

// 删除订单列表
export const deleteBusOrder = (params?: any) => 
	request({
			url: Api.DeleteBusOrder,
			method: 'post',
			data: params,
		});

// 编辑订单列表
export const updateBusOrder = (params?: any) => 
	request({
			url: Api.UpdateBusOrder,
			method: 'post',
			data: params,
		});

// 分页查询订单列表
export const pageBusOrder = (params?: any) => 
	request({
			url: Api.PageBusOrder,
			method: 'post',
			data: params,
		});

export const getBusStroeDropdown = () =>
		request({
		url: Api.GetBusStroeDropdown,
		method: 'get'
		});

